#include "SMPPBroadcastSMResp.hpp"

using namespace smpp::pdu;

BroadcastSMResp::BroadcastSMResp(const Header &nHeader,
const CoctetString &nMessageId,
const BroadcastResponseOptionalTLVs &nBroadcastResponseOptionalTLVs):
Header(nHeader),
_MessageId(nMessageId),
BroadcastResponseOptionalTLVs(nBroadcastResponseOptionalTLVs){}

BroadcastSMResp::BroadcastSMResp(
const BroadcastSMResp &nBroadcastSMResp):
Header(nBroadcastSMResp),
_MessageId(nBroadcastSMResp.getMessageId()),
BroadcastResponseOptionalTLVs(nBroadcastSMResp){}

void BroadcastSMResp::setMessageId(const CoctetString &sMessageId){
	_MessageId = sMessageId;
}

const CoctetString &BroadcastSMResp::getMessageId() const{
	return _MessageId;
}

void BroadcastSMResp::calcCommandLength(){
	_CommandLength = 16 + _MessageId.size() + 
		BroadcastResponseOptionalTLVs::getLength();
}
